import request from '@/axios';
import {baseUrl} from '@/config/env';

export const list = (data) => {
    return request({
            url: baseUrl + '/start/dataSource/table/pageDataSourceTable',
            method: 'get',
            params: data
        }
    )
}
export const getById = (id) => {
    return request({
            url: baseUrl + '/start/dataSource/table/getById/' + id,
            method: 'get',
        }
    )
}
export const importTables = (data) => {
    return request({
            url: baseUrl + '/start/dataSource/table/importTables',
            method: 'post',
            data: data
        }
    )
}


const sysDataTableConfigApi = {}
sysDataTableConfigApi.list = list;
sysDataTableConfigApi.importTables = importTables
sysDataTableConfigApi.getById = getById

export default sysDataTableConfigApi
